package com.one.service;

import com.one.pojo.Land;
import com.one.pojo.OneUser;
import com.one.pojo.Store;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Author semstouch
 * @Date 2017/4/7
 **/
@Service
public interface LandService {
    boolean add(Land land);
    boolean update(Land land);
    Land update(Land land,Store store);
    Land getEggsFromLand(String userId,String landId);
    Land putChickenToStore(String userId,String landId);
    List<Land> findAll(String chickenfarmId);
    Land findById(String userId, String landId);
    boolean dailyLand(OneUser oneUser,BigDecimal pubRate, BigDecimal ratio);
}
